CMAKE_MINIMUM_REQUIRED(VERSION 3.16)

PROJECT(support-periph-devices)
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS ON)

include_directories(${sros_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/config SRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/devices SRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/devices/detail SRC)

add_library(${PROJECT_NAME} SHARED ${SRC})
add_library(${PROJECT_NAME}_static STATIC ${SRC})

target_link_libraries(${PROJECT_NAME} PRIVATE 
         ${sros_LIBRARIES})